Skip to main content

Get all loan

GET /api/v1/Loans/get-all

Description

This endpoint is used to retrieve all loans.

Tags:
Loans

URL:
/api/v{version}/Loans/get-all

ApiKey:
No API key required

Content-Type:
No request body

Query Parameters:
PageNumber: integer, optional, default is 1
PageSize: integer, optional, default is 10
version: string, required
Accept-Language: header, optional, change the default response message language from English (en) to French (fr) or English (en)

Response:
Success, returns the list of all loans.

Error Codes:
400: Bad Request
404: Resource not found
500: Internal server error

Example:

GET /api/v1/Loans/get-all?PageNumber=1&PageSize=10
Accept-Language: fr

/api/v1/Loans/get-all?PageNumber=<integer>&PageSize=<integer>

Headers

Content-TypeValue
Accept-Language

Query Params

Paramvalue
PageNumber<integer>
PageSize<integer>

Response: 200

LANGUAGE

AUTHORIZATION

Bearer

CURL REQUEST


curl --request GET \ 
--url /api/v1/Loans/get-all \
--header 'accept: application/json' \
--header 'content-type: application/json'

RESPONSE


Click Try It! to start a request and see the response here!